package com.leyou.demo.UserServiceimpl;

import com.leyou.demo.UserMapper.userMapper;
import com.leyou.demo.UserService.userService;
import com.leyou.demo.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class userServiceimpl implements userService {
    @Autowired
    private userMapper userMapper;
    @Override
    public User findUser(Long id) {

        return userMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<User> findUserAll() {

        return userMapper.selectAll();
    }
}
